package xin.nick.demo;

import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

@RestController
public class TestController {

    @RequestMapping("/test")
    public String test() {
        return "test";
    }

    @RequestMapping("/test1/{id}")
    public String test1(@PathVariable String id) {
        System.out.println(id);
        return id;
    }

}
